3.4.17 \(\int x (A+B x) \sqrt {a+c x^2} \, dx\)

Optimal. Leaf size=80 \[ -\frac {a^2 B \tanh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )}{8 c^{3/2}}+\frac {\left (a+c x^2\right )^{3/2} (4 A+3 B x)}{12 c}-\frac {a B x \sqrt {a+c x^2}}{8 c} \]

________________________________________________________________________________________

Rubi [A]  time = 0.03, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {780, 195, 217, 206} \begin {gather*} -\frac {a^2 B \tanh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )}{8 c^{3/2}}+\frac {\left (a+c x^2\right )^{3/2} (4 A+3 B x)}{12 c}-\frac {a B x \sqrt {a+c x^2}}{8 c} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x*(A + B*x)*Sqrt[a + c*x^2],x]

[Out]

-(a*B*x*Sqrt[a + c*x^2])/(8*c) + ((4*A + 3*B*x)*(a + c*x^2)^(3/2))/(12*c) - (a^2*B*ArcTanh[(Sqrt[c]*x)/Sqrt[a
+ c*x^2]])/(8*c^(3/2))

Rule 195

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(x*(a + b*x^n)^p)/(n*p + 1), x] + Dist[(a*n*p)/(n*p + 1),
 Int[(a + b*x^n)^(p - 1), x], x] /; FreeQ[{a, b}, x] && IGtQ[n, 0] && GtQ[p, 0] && (IntegerQ[2*p] || (EqQ[n, 2
] && IntegerQ[4*p]) || (EqQ[n, 2] && IntegerQ[3*p]) || LtQ[Denominator[p + 1/n], Denominator[p]])

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 217

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

Rule 780

Int[((d_.) + (e_.)*(x_))*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(((e*f + d*g)*(2*p
 + 3) + 2*e*g*(p + 1)*x)*(a + c*x^2)^(p + 1))/(2*c*(p + 1)*(2*p + 3)), x] - Dist[(a*e*g - c*d*f*(2*p + 3))/(c*
(2*p + 3)), Int[(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, f, g, p}, x] &&  !LeQ[p, -1]

Rubi steps

\begin {align*} \int x (A+B x) \sqrt {a+c x^2} \, dx &=\frac {(4 A+3 B x) \left (a+c x^2\right )^{3/2}}{12 c}-\frac {(a B) \int \sqrt {a+c x^2} \, dx}{4 c}\\ &=-\frac {a B x \sqrt {a+c x^2}}{8 c}+\frac {(4 A+3 B x) \left (a+c x^2\right )^{3/2}}{12 c}-\frac {\left (a^2 B\right ) \int \frac {1}{\sqrt {a+c x^2}} \, dx}{8 c}\\ &=-\frac {a B x \sqrt {a+c x^2}}{8 c}+\frac {(4 A+3 B x) \left (a+c x^2\right )^{3/2}}{12 c}-\frac {\left (a^2 B\right ) \operatorname {Subst}\left (\int \frac {1}{1-c x^2} \, dx,x,\frac {x}{\sqrt {a+c x^2}}\right )}{8 c}\\ &=-\frac {a B x \sqrt {a+c x^2}}{8 c}+\frac {(4 A+3 B x) \left (a+c x^2\right )^{3/2}}{12 c}-\frac {a^2 B \tanh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a+c x^2}}\right )}{8 c^{3/2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.14, size = 86, normalized size = 1.08 \begin {gather*} \frac {\sqrt {a+c x^2} \left (\sqrt {c} \left (8 a A+3 a B x+8 A c x^2+6 B c x^3\right )-\frac {3 a^{3/2} B \sinh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {\frac {c x^2}{a}+1}}\right )}{24 c^{3/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x*(A + B*x)*Sqrt[a + c*x^2],x]

[Out]

(Sqrt[a + c*x^2]*(Sqrt[c]*(8*a*A + 3*a*B*x + 8*A*c*x^2 + 6*B*c*x^3) - (3*a^(3/2)*B*ArcSinh[(Sqrt[c]*x)/Sqrt[a]
])/Sqrt[1 + (c*x^2)/a]))/(24*c^(3/2))

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.20, size = 77, normalized size = 0.96 \begin {gather*} \frac {a^2 B \log \left (\sqrt {a+c x^2}-\sqrt {c} x\right )}{8 c^{3/2}}+\frac {\sqrt {a+c x^2} \left (8 a A+3 a B x+8 A c x^2+6 B c x^3\right )}{24 c} \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[x*(A + B*x)*Sqrt[a + c*x^2],x]

[Out]

(Sqrt[a + c*x^2]*(8*a*A + 3*a*B*x + 8*A*c*x^2 + 6*B*c*x^3))/(24*c) + (a^2*B*Log[-(Sqrt[c]*x) + Sqrt[a + c*x^2]
])/(8*c^(3/2))

________________________________________________________________________________________

fricas [A]  time = 0.47, size = 157, normalized size = 1.96 \begin {gather*} \left [\frac {3 \, B a^{2} \sqrt {c} \log \left (-2 \, c x^{2} + 2 \, \sqrt {c x^{2} + a} \sqrt {c} x - a\right ) + 2 \, {\left (6 \, B c^{2} x^{3} + 8 \, A c^{2} x^{2} + 3 \, B a c x + 8 \, A a c\right )} \sqrt {c x^{2} + a}}{48 \, c^{2}}, \frac {3 \, B a^{2} \sqrt {-c} \arctan \left (\frac {\sqrt {-c} x}{\sqrt {c x^{2} + a}}\right ) + {\left (6 \, B c^{2} x^{3} + 8 \, A c^{2} x^{2} + 3 \, B a c x + 8 \, A a c\right )} \sqrt {c x^{2} + a}}{24 \, c^{2}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)*(c*x^2+a)^(1/2),x, algorithm="fricas")

[Out]

[1/48*(3*B*a^2*sqrt(c)*log(-2*c*x^2 + 2*sqrt(c*x^2 + a)*sqrt(c)*x - a) + 2*(6*B*c^2*x^3 + 8*A*c^2*x^2 + 3*B*a*
c*x + 8*A*a*c)*sqrt(c*x^2 + a))/c^2, 1/24*(3*B*a^2*sqrt(-c)*arctan(sqrt(-c)*x/sqrt(c*x^2 + a)) + (6*B*c^2*x^3
+ 8*A*c^2*x^2 + 3*B*a*c*x + 8*A*a*c)*sqrt(c*x^2 + a))/c^2]

________________________________________________________________________________________

giac [A]  time = 0.18, size = 68, normalized size = 0.85 \begin {gather*} \frac {B a^{2} \log \left ({\left | -\sqrt {c} x + \sqrt {c x^{2} + a} \right |}\right )}{8 \, c^{\frac {3}{2}}} + \frac {1}{24} \, \sqrt {c x^{2} + a} {\left ({\left (2 \, {\left (3 \, B x + 4 \, A\right )} x + \frac {3 \, B a}{c}\right )} x + \frac {8 \, A a}{c}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)*(c*x^2+a)^(1/2),x, algorithm="giac")

[Out]

1/8*B*a^2*log(abs(-sqrt(c)*x + sqrt(c*x^2 + a)))/c^(3/2) + 1/24*sqrt(c*x^2 + a)*((2*(3*B*x + 4*A)*x + 3*B*a/c)
*x + 8*A*a/c)

________________________________________________________________________________________

maple [A]  time = 0.05, size = 75, normalized size = 0.94 \begin {gather*} -\frac {B \,a^{2} \ln \left (\sqrt {c}\, x +\sqrt {c \,x^{2}+a}\right )}{8 c^{\frac {3}{2}}}-\frac {\sqrt {c \,x^{2}+a}\, B a x}{8 c}+\frac {\left (c \,x^{2}+a \right )^{\frac {3}{2}} B x}{4 c}+\frac {\left (c \,x^{2}+a \right )^{\frac {3}{2}} A}{3 c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(B*x+A)*(c*x^2+a)^(1/2),x)

[Out]

1/4*B*x*(c*x^2+a)^(3/2)/c-1/8*a*B*x*(c*x^2+a)^(1/2)/c-1/8*B*a^2/c^(3/2)*ln(c^(1/2)*x+(c*x^2+a)^(1/2))+1/3*A*(c
*x^2+a)^(3/2)/c

________________________________________________________________________________________

maxima [A]  time = 0.47, size = 67, normalized size = 0.84 \begin {gather*} \frac {{\left (c x^{2} + a\right )}^{\frac {3}{2}} B x}{4 \, c} - \frac {\sqrt {c x^{2} + a} B a x}{8 \, c} - \frac {B a^{2} \operatorname {arsinh}\left (\frac {c x}{\sqrt {a c}}\right )}{8 \, c^{\frac {3}{2}}} + \frac {{\left (c x^{2} + a\right )}^{\frac {3}{2}} A}{3 \, c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)*(c*x^2+a)^(1/2),x, algorithm="maxima")

[Out]

1/4*(c*x^2 + a)^(3/2)*B*x/c - 1/8*sqrt(c*x^2 + a)*B*a*x/c - 1/8*B*a^2*arcsinh(c*x/sqrt(a*c))/c^(3/2) + 1/3*(c*
x^2 + a)^(3/2)*A/c

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x\,\sqrt {c\,x^2+a}\,\left (A+B\,x\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(a + c*x^2)^(1/2)*(A + B*x),x)

[Out]

int(x*(a + c*x^2)^(1/2)*(A + B*x), x)

________________________________________________________________________________________

sympy [A]  time = 5.41, size = 124, normalized size = 1.55 \begin {gather*} A \left (\begin {cases} \frac {\sqrt {a} x^{2}}{2} & \text {for}\: c = 0 \\\frac {\left (a + c x^{2}\right )^{\frac {3}{2}}}{3 c} & \text {otherwise} \end {cases}\right ) + \frac {B a^{\frac {3}{2}} x}{8 c \sqrt {1 + \frac {c x^{2}}{a}}} + \frac {3 B \sqrt {a} x^{3}}{8 \sqrt {1 + \frac {c x^{2}}{a}}} - \frac {B a^{2} \operatorname {asinh}{\left (\frac {\sqrt {c} x}{\sqrt {a}} \right )}}{8 c^{\frac {3}{2}}} + \frac {B c x^{5}}{4 \sqrt {a} \sqrt {1 + \frac {c x^{2}}{a}}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(B*x+A)*(c*x**2+a)**(1/2),x)

[Out]

A*Piecewise((sqrt(a)*x**2/2, Eq(c, 0)), ((a + c*x**2)**(3/2)/(3*c), True)) + B*a**(3/2)*x/(8*c*sqrt(1 + c*x**2
/a)) + 3*B*sqrt(a)*x**3/(8*sqrt(1 + c*x**2/a)) - B*a**2*asinh(sqrt(c)*x/sqrt(a))/(8*c**(3/2)) + B*c*x**5/(4*sq
rt(a)*sqrt(1 + c*x**2/a))

________________________________________________________________________________________